package android.slc.user.ui.ud.vmbox

import android.slc.appbase.utils.AppIntentUtils
import android.slc.extras.component.tree.entity.SlcTree
import java.io.Serializable

/**
 *
 * @Description:
 * @Author: sunlunchang
 * @CreateDate: 2021/12/06 下午 2:42
 *
 */
class DeptUserListSingleVmBox : DeptUserListVmBox() {

    override fun notifyRefreshByGlobal(data: Any?) {
        data?.let {
            fillResultAndFinish(AppIntentUtils.getBundleByData(it as Serializable))
        }
    }

    override fun leafClick(index: Int, data: SlcTree) {
        super.leafClick(index, data)
        fillResultAndFinish(AppIntentUtils.getBundleByData(data))
    }

}